ARDUINO WITH LCD DISPLAY HUMIDITY AND TEMPERATURE PROJECT by Elif AVCU

ARDUINO WITH LCD DISPLAY HUMIDITY AND TEMPERATURE PROJECT by Elif AVCU

Author:Elif AVCU [AVCU, Elif]
Language: eng
Format: azw3
Published: 2018-11-30T16:00:00+00:00


byte degree[8] =

{

B00111,

B00101,

B00111,

B00000,

B00000,

B00000,

B00000,

};

LiquidCrystal_I2C lcd(0x27,16,2);

void setup()

{

lcd.init();

lcd.backlight();

lcd.createChar(1, degree);

}

void loop()

{

lcd.setCursor(0, 0);

lcd.print("Nem = % ");

lcd.setCursor(11, 0);

lcd.print(DHT.humidity, 1);

lcd.setCursor(0, 1);

lcd.print("Sicaklik = \1C ");

lcd.setCursor(11, 1);

lcd.print(DHT.temperature,1);

int chk;

;

chk = DHT.read(DHT11_PIN);

switch (chk){

case DHTLIB_OK:

break;

case DHTLIB_ERROR_CHECKSUM:

lcd.clear();

lcd.print("hata");

break;

case DHTLIB_ERROR_TIMEOUT:

lcd.clear();

lcd.print("Sure bitti");

break;

default:

lcd.clear();



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.